package kr.hkit.powerjava.alone;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class Test01 extends JPanel {
	private JLabel lblLabel;
	private JTextField textField;

	public Test01() {

		initialize();
	}
	private void initialize() {
		
		lblLabel = new JLabel("마일 단위 입력");
		add(lblLabel);
		
		textField = new JTextField();
		add(textField);
		textField.setColumns(6);
	}
	
	public String getTextField() {
		return textField.getText();
	}
	public void setTextField(String text) {
		textField.setText(text);
	}
	
}


